Otherwise we risk being re-entrant where GtkPopover will not have a
GdkPopupLayout causing other issues.
gdk_macos_popup_surface_layout (self, width, height, layout);
- GDK_MACOS_SURFACE (self)->did_initial_present = TRUE;
-
if (GDK_SURFACE_IS_MAPPED (GDK_SURFACE (self)))
return TRUE;
show_popup (GDK_MACOS_POPUP_SURFACE (self));
}
+ GDK_MACOS_SURFACE (self)->did_initial_present = TRUE;
+
return GDK_SURFACE_IS_MAPPED (GDK_SURFACE (self));
}
_gdk_macos_popup_surface_reposition (GDK_MACOS_POPUP_SURFACE (child));
}
- if (GDK_IS_POPUP (self))
+ if (GDK_IS_POPUP (self) && self->did_initial_present)
g_signal_emit_by_name (self, "popup-layout-changed");
}